home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 9
/
Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO
/
006a
/
nstat11.zip
/
GOODRUN.DOC
< prev
next >
Wrap
Text File
|
1993-02-07
|
2KB
|
65 lines
Program--Goodrun.exe by Kevin Cummins (C) 1992
Do you relay Network Mail? Do you have a bulletin that shows the date/time
of the last 'successful' run for each particular network? Do you think a
run is successful, even if your normal download packet is 300 or 400K+, and
this run was only a few K?
I know that run was technically successful if everything functioned
correctly, but as far as the users are concerned---no messages, no
success.......
So, I decided to figure a way to separate barely successful from normally
successful runs where the message flow is above a certain level.
GOODRUN needs 2 command line parameters. The first is the filename to
perform the size check on, and the second is the file size (in K-bytes)
that you wish to be considered as a 'good' run.
What GOODRUN does is very simple. It checks the size of your downloaded
packet, and returns errorlevel 0 if that file is greater than a
pre-specified size. Otherwise, it returns errorlevel 1 if the file is
smaller, or errorlevel 2 for any runtime errors.
Below is a section of my batch file that controls my RIME mail run via
Postlink with GOODRUN checking for a nominal filesize of 25K:
-----------------
cd\postlink
GOODRUN D1390.ZIP 25
if errorlevel 2 goto error2
if errorlevel 1 goto error1
if errorlevel 0 goto error0
:error2
rem File Not Found!
goto continue
:error1
rem File Size Too Small
goto continue
:error0
rem File Size OK, so run POSTLINK/NETBULL
POSTLINK CALLER.CFG /CONTINUE
NETSTAT 1
goto end
:continue
POSTLINK CALLER.CFG /CONTINUE
goto end
:END
-------------------
That's about it. Type GOODRUN at the command line for usage and example.
This is a quickie, so NO elaborate docs, NO guarantees, NO money...<G> Feel
free to make use of this as you see fit. I'm sure it could be used in more
ways than this, if so, help yourself.
POSTLINK relay software Copyright (C) by Kip Compton
Question? Call Crimson Cross BBS 618-253-3608 USR DS 14.4